package com.ruoyi.system.wnjk.service.impl;

import java.util.List;

import com.ruoyi.system.wnjk.domain.po.ShopAddress;
import com.ruoyi.system.wnjk.mapper.ShopAddressMapper;
import com.ruoyi.system.wnjk.service.IShopAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-07
 */
@Service
public class ShopAddressServiceImpl implements IShopAddressService
{
    @Autowired
    private ShopAddressMapper shopAddressMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ShopAddress selectShopAddressById(Long id)
    {
        return shopAddressMapper.selectShopAddressById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param shopAddress 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ShopAddress> selectShopAddressList(ShopAddress shopAddress)
    {
        return shopAddressMapper.selectShopAddressList(shopAddress);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param shopAddress 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertShopAddress(ShopAddress shopAddress)
    {
        return shopAddressMapper.insertShopAddress(shopAddress);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param shopAddress 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateShopAddress(ShopAddress shopAddress)
    {
        return shopAddressMapper.updateShopAddress(shopAddress);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteShopAddressByIds(Long[] ids)
    {
        return shopAddressMapper.deleteShopAddressByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteShopAddressById(Long id)
    {
        return shopAddressMapper.deleteShopAddressById(id);
    }
}
